package com.example.myandroidapp1.dto;

import java.io.Serializable;

public class GridItem implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String thumbnail;
	private String imageUrl;
	
	
	public GridItem(String thumbnail) {
		super();
		this.thumbnail = thumbnail;
		this.imageUrl = getImageUrlFromThumbnail(thumbnail);
	}
	
	
	
	private String getImageUrlFromThumbnail(String thumbnail) {
		String fullImageUrl = thumbnail.replace("gallerythumbnail.jpg", "imagefull.jpg");
		return fullImageUrl;
	}



	public String getThumbnail() {
		return thumbnail;
	}



	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}



	public String getImageUrl() {
		return imageUrl;
	}
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

}
